#密钥扩展算法ExpandKey
def ExpandKey(k):
    kls=list()
    kls.append(k[0:32])
    kls.append(k[32:64])
    kls.append(k[64:96])
    kls.append(k[96:128])
    for i in range(92):
        k0=Yand32(Yand32(xor32(xor32(kls[i],32*'1'),xor32(kls[i+1],32*'1')),kls[i+2]),xor32(kls[i+3],format(i,'032b')))
        k0=xor32(xor32(k0,demo(k0,13)),demo(k0,22))
        kls.append(k0)
    return kls
    
